import {createRouter, createWebHistory} from 'vue-router'


const routes = [
	{
		path: '/',
		component: () => import('@/pages/layout/Home.vue'),
		children: [
			{
				path: 'legend',
				component: () => import('@/pages/echarts/Legend.vue')
			},
			{
				path: 'form',
				component: () => import('@/pages/form/form-demo.vue')
			},
			{
				path: 'table',
				component: () => import('@/pages/table/table-demo.vue')
			}
		]
	}
]

const router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL),
	routes
})

export default router